import request from '@/utils/request';


/**
 * 
 * @param 查询福利采购申请列表 
 * @returns 
 */
export const getWelfareProcurementList = (data: any) => {
    return request({
        url: '/system/welfarePurchaseApply/list',
        method: 'post',
        data: data
    });
};

/**
 * 
 * @param 修改福利采购申请 编辑
 * @returns 
 */

export const editWelfareProcurementApi = (data: any) => {
    return request({
        url: '/system/welfarePurchaseApply',
        method: 'put',
        data: data
    });
};

/**
 * 
 * @param 审批接口 2审批通过 3审批拒绝
 * @returns 
 */

export const approvalApi = (data: any) => {
    return request({
        url: '/system/welfarePurchaseApply/approval',
        method: 'put',
        params: data
    });
};

/**
 * 
 * @param 福利采购申请 入库
 * @returns 
 */
export const warehouseEntryApi = (data: any) => {
    return request({
        url: '/system/welfarePurchaseApply/warehouseEntry',
        method: 'post',
        data: data
    });
};

/**
 * 
 * @param 福利采购申请 对账
 * @returns 
 */ 
export const welfareReconciliationApi = (data: any) => {
    return request({
        url: '/system/welfarePurchaseApply/reconciliation',
        method: 'PUT',
        data: data
    });
};

/**
 * 
 * @param 福利采购申请 删除
 * @returns 
 */
export const deleteWelfareProcurementApi = (ids: any) => {
    return request({
        url: `/system/welfarePurchaseApply/${ids}`,
        method: 'delete',
    });
};